<template>
  <div>
    <el-container class="content" direction="vertical">
      <div class="header">服务</div>
      <!-- 搜索区域 -->
      <div class="main">
        <el-row>
          <el-col :span="2" class="label"><p>分类名称:</p> </el-col>
          <el-col :span="4">
            <el-input v-model="userName" placeholder="分类名称"></el-input>
          </el-col>
          <el-col :span="2" class="label"><p>分类排序:</p> </el-col>
          <el-col :span="4">
            <el-input v-model="phone" placeholder="分类排序"></el-input>
          </el-col>
          <el-col :span="4" :offset="2">
            <el-button type="primary" style="width:120px;">保存</el-button>
          </el-col>
        </el-row>
      </div>
      <div class="footer">
        <div class="title">服务类别</div>
        <!-- 表格 -->
        <el-table border style="width: 100%" class="tableData">
          <el-table-column prop="date" label="服务分类" align="center">
          </el-table-column>
          <el-table-column prop="name" label="排序" align="center">
          </el-table-column>
          <el-table-column prop="name" label="操作" align="center">
            <template slot-scope="scope">
              <p class="control"><span>编辑</span>|<span>删除</span></p>
            </template>
          </el-table-column>
        </el-table>
        <!-- 分页 -->
        <el-pagination
          background
          layout="prev, pager, next"
          :total="100"
          class="pages"
        >
        </el-pagination>
      </div>
    </el-container>
  </div>
</template>

<script>
export default {
  name: ""
};
</script>
<style scoped>
.control {
  color: red;
}
.title {
  font-weight: 900;
  font-size: 16px;
  margin: 80px 0 20px 0;
}
.label {
  margin-left: 60px;
}
.pages {
  float: right;
  margin: 20px 20px 0 0;
}
.tableData {
  margin-top: 20px;
}
.filterUser {
  margin-right: 30px;
}

.content {
  width: 95%;
  height: 955px;
  background-color: rgba(255, 255, 255, 100);
  font-size: 14px;
  border: 3px solid skyblue;
  border-radius: 10px;
  margin: 25px 20px 0px 30px;
  padding: 20px;
}
.header {
  height: 30px;
  font-family: SourceHanSansSC-regular;
}
.main {
  height: 80px;

  color: rgba(16, 16, 16, 100);
  font-size: 14px;
  font-family: Roboto;
  padding: 20px 0 0 0;
  border-bottom: gainsboro solid 2px;
}
</style>
